/**
 * 默认路由
 */
const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("@/components/layout/AntdLayout.vue"), //加载模板文件
    children: [
      {
        path: "/home",
        name: "home",
        component: () => require("@/views/HomeView.vue"),
      },
      {
        path: "/about",
        name: "about",
        component: () => require("@/views/AboutView.vue"),
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: () => require("@/views/LoginView.vue"),
  },
];
export default routes;
